import { RouteRecordRaw, createWebHistory, createRouter } from "vue-router";

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    component: () => import('../components/HelloWorld.vue')  // 首页组件
  }, {
    path: '/warehousing',
    component: () => import('../components/components/options/RuKuO.vue')  // 入库选项组件
  }, {
    path: '/lead',
    component: () => import('../components/components/options/QingLingO.vue')  // 请领选项组件
  }, {
    path: '/returning',
    component: () => import('../components/components/options/GuiHuaO.vue')  // 归还选项组件
  }, {
    path: '/check',
    component: () => import('../components/components/options/JianChaO.vue'),  // 检查选项组件
  }, {
    path: '/ruku',
    component: () => import('../components/components/check/ruku.vue')  // 入库检查组件
  },
  {
    path: '/kucuncheck',
    component: () => import('../components/components/check/kucuncheck.vue')  // 入库检查组件
  },
  {
    path: '/qinglingcheck',
    component: () => import('../components/components/check/qinglingcheck.vue')  // 入库检查组件
  },
  {
    path: '/returncheck',
    component: () => import('../components/components/check/returncheck.vue')  // 入库检查组件
  },
  {
    path: '/videocheck',
    component: () => import('../components/components/check/videocheck.vue')  // 入库检查组件
  },
  {
    path: '/checkrecord',
    component: () => import('../components/components/check/checkrecord.vue')  // 入库检查组件
  },
  {
    path: '/borrow:id/:name/:miji/:inventoryNum/:publishTime/:img?',
    name:'borrow',
    component: () => import('../components/components/options/components/qingling/QingLingTab.vue')  // 入库检查组件
  }
]

const router = createRouter({
  history: createWebHistory(), // 路由类型
  routes // short for `routes: routes`
})


export default router